package jun.learn.spring.interceptor;

public class PerformenceMonitor {
	private long start;
	private String methodDesc;
	
	public PerformenceMonitor(String methodDesc) {
		start = System.currentTimeMillis();
		this.methodDesc = methodDesc;
	}
	
	public void end(){
		long end = System.currentTimeMillis();
		System.out.println("["+methodDesc+"]执行时间："+(end - start));
	}
}
